#ifndef MAIN_CURVE_H
#define MAIN_CURVE_H
#include "qwt/qwt_plot.h"
#include <qwt/qwt_plot_curve.h>
#include <qwt/qwt_scale_map.h>
#include <qwt/qwt_symbol.h>
#include <qwt/qwt_math.h>

#include <QPainter>
#include <QApplication>
#include <QFrame>

const int Size = 27;
const int CurvCnt = 6;

   class CurveBox : public QFrame
   {
     public:
       CurveBox();

     protected:
       virtual void paintEvent( QPaintEvent* ) QWT_OVERRIDE;

     private:
       void drawCurves( QPainter* );
       void populate();
       void shiftDown( QRect& rect, int offset ) const;

       QwtPlotCurve m_curves[CurvCnt];

       QwtScaleMap xMap;
       QwtScaleMap yMap;

       double xval[Size];
       double yval[Size];
   };
int main_curve( int argc, char* argv[] );
#endif // DlgCard_H

